package com.rz.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_group_resource")
public class GroupResource {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer groupId;
    private Integer resId;
    private Integer leaf;

    public GroupResource() {}
    public GroupResource(Integer groupId, Integer resId, Integer leaf) {
        this.groupId = groupId;
        this.resId = resId;
        this.leaf = leaf;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }

    public Integer getLeaf() {
        return leaf;
    }

    public void setLeaf(Integer leaf) {
        this.leaf = leaf;
    }
}
